package metu.tespit.entitiy.accountManagement;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 
 * @created 01 Nis 2012
 */

@Entity
@Table(name="userrole", uniqueConstraints=@UniqueConstraint(columnNames="roleName"))
public class UserRole implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1581132579938017865L;

	@Id @GeneratedValue
	private Long id;
	
	private String roleName;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
}
